<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7 " lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8 " lang="en-US">
<![endif]-->
<!--[if IE 9]>
<html class="ie ie9 " lang="en-US">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) | !(IE 9)  ]><!-->
<html class="" lang="en-US">
<!--<![endif]-->
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
	<title>Sending SMS from JavaScript using SMS plugin for Phonegap  | JavatechIG.com</title>
	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="pingback" href="http://javatechig.com/xmlrpc.php" />
	<!--[if lt IE 9]>
  <link rel="stylesheet" href="http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/css/ie8.css">
	<script src="http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/html5.js" type="text/javascript"></script>
	<![endif]-->
	<link rel="alternate" type="application/rss+xml" title="JavatechIG.com &raquo; Feed" href="http://javatechig.com/feed" />
<link rel="alternate" type="application/rss+xml" title="JavatechIG.com &raquo; Comments Feed" href="http://javatechig.com/comments/feed" />
<link rel="alternate" type="application/rss+xml" title="JavatechIG.com &raquo; Sending SMS from JavaScript using Phonegap SMS plugin Comments Feed" href="http://javatechig.com/phonegap/phonegap-sms-plugin-android/feed" />
<link rel='stylesheet' id='blogsynthesis-scroll-to-top-style-css'  href='http://javatechig.com/wp-content/plugins/jquery-smooth-scroll/css/jss-style.min.css?ver=3.7.1' type='text/css' media='all' />
<link rel='stylesheet' id='validate-engine-css-css'  href='http://javatechig.com/wp-content/plugins/wysija-newsletters/css/validationEngine.jquery.css?ver=2.5.9.4' type='text/css' media='all' />
<link rel='stylesheet' id='tss_css-css'  href='http://javatechig.com/wp-content/plugins/slimbox-2-slideshow/tss.css?ver=1.2.2' type='text/css' media='all' />
<link rel='stylesheet' id='cube3x-social-css-css'  href='http://javatechig.com/wp-content/plugins/all-in-one-social-lite/css/cube3x-social-style.css?ver=1.0' type='text/css' media='all' />
<link rel='stylesheet' id='dwqa-style-css'  href='http://javatechig.com/wp-content/plugins/dw-question-answer/assets/css/style.css?ver=1387162992' type='text/css' media='all' />
<link rel='stylesheet' id='arevico_scsfbcss-css'  href='http://javatechig.com/wp-content/plugins/facebook-page-promoter-lightbox/scs/scs.css?ver=3.7.1' type='text/css' media='all' />
<link rel='stylesheet' id='ppc-main-css'  href='http://javatechig.com/wp-content/plugins/posts-per-cat/ppc.css?ver=3.7.1' type='text/css' media='all' />
<style type='text/css'>
.ppc .attachment-60x60 {
	width: 60px !important;
	height: 60px !important;
}
</style>
<link rel='stylesheet' id='ppc-list-css'  href='http://javatechig.com/wp-content/plugins/posts-per-cat/ppc-list.css?ver=3.7.1' type='text/css' media='all' />
<link rel='stylesheet' id='toc-screen-css'  href='http://javatechig.com/wp-content/plugins/table-of-contents-plus/screen.css?ver=1308' type='text/css' media='all' />
<link rel='stylesheet' id='wpProQuiz_front_style-css'  href='http://javatechig.com/wp-content/plugins/wp-pro-quiz/css/wpProQuiz_front.min.css?ver=0.28' type='text/css' media='all' />
<link rel='stylesheet' id='dw-brick-style-css'  href='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/style.css?ver=3.7.1' type='text/css' media='all' />
<link rel='stylesheet' id='dw_template_style-css'  href='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/css/template.css?ver=3.7.1' type='text/css' media='all' />
<link rel='stylesheet' id='metro_style_social_widget-css'  href='http://javatechig.com/wp-content/plugins/metro-style-social-widget/CSS/metro.css?ver=3.7.1' type='text/css' media='all' />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/jquery-smooth-scroll/js/jss-script.min.js?ver=3.7.1'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var tss_objects = {"tss_auto":"checked","tss_scaling":"0.75","tss_maps":"","tss_all":"checked","tss_time":"10","tss_mob":"checked","tss_images":"http:\/\/javatechig.com\/wp-content\/plugins\/slimbox-2-slideshow\/images.xml"};
/* ]]> */
</script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/slimbox-2-slideshow/tss.min.js?ver=1.2.2'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/all-in-one-social-lite/js/all-in-one-social.js?ver=1.0'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/facebook-page-promoter-lightbox/scs/scs.js?ver=3.7.1'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var lb_l_ret = {"fb_id":"228850867127175","display_on_page":"1","display_on_post":"1","display_on_homepage":"1","display_on_archive":"1","show_once":"3","delay":"1000","fancybox":"","facebookheader":"","gaevent":"","eam":"","hideonlike":""};
/* ]]> */
</script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/facebook-page-promoter-lightbox/js/launch.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/jquery-image-lazy-loading/js/jquery.lazyload.min.js?ver=1.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-includes/js/comment-reply.min.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-affix.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-alert.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-button.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-carousel.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-collapse.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-dropdown.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-modal.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-tooltip.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-popover.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-scrollspy.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-tab.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-transition.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/inc/bootstrap/js/bootstrap-typeahead.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/jquery.infinitescroll.min.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/modernizr.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/jquery.hammer.min.js?ver=3.7.1'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/tinynav.min.js?ver=3.7.1'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var singleScript = {"is_cat_refer":"0","ajax_url":"http:\/\/javatechig.com\/wp-admin\/admin-ajax.php","postId":"2985","nonce":"9119099c51","text_readingnow":"Reading now","text_streamlist_end":"No more post to display"};
/* ]]> */
</script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/single.js?ver=3.7.1'></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://javatechig.com/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://javatechig.com/wp-includes/wlwmanifest.xml" /> 
<link rel='prev' title='Android Button Example' href='http://javatechig.com/android/android-button-example' />
<link rel='next' title='Android Menu Example' href='http://javatechig.com/android/android-menu-example' />
<meta name="generator" content="WordPress 3.7.1" />
<link rel='shortlink' href='http://javatechig.com/?p=2985' />
<style type='text/css'>
img.lazy { display: none; }
</style>
<link type="text/css" rel="stylesheet" href="http://javatechig.com/wp-content/plugins/posts-for-page/pfp.css" />
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shCore.js'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shAutoloader.js'></script>
<link type='text/css' rel='stylesheet' href='http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/styles/shCore.css'/>
<link type='text/css' rel='stylesheet' href='http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/styles/shThemeMDUltra.css'/>
<style type="text/css">div#toc_container ul li {font-size: 100%;}</style><link rel="shortcut icon" href="http://javatechig.com/wp-content/uploads/2013/10/javatechig-fav-icon.png"><style type="text/css"> 
        .navbar .brand span { 
            background: url("") no-repeat center; 
        }
        </style><!-- Google analytics -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38616813-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<!--end Google analytics -->
<!-- All in One SEO Pack 2.1.1 by Michael Torbert of Semper Fi Web Design[423,500] -->
<link rel="author" href="http://112766569429279922709" />
<meta name="description" content="Sending SMS from JavaScript using SMS plugin for Phonegap Codova. This Android Phonegap plugin allows you to easily send SMS in android using both native SMS Manager or by invoking the default android SMS app. This plugin works with PhoneGap 2.9.x version" />

<meta name="keywords" content="sending sms from javascript using sms plugin for phonegap ,phonegap" />

<link rel="canonical" href="http://javatechig.com/phonegap/phonegap-sms-plugin-android" />
		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-38616813-1']);
		  _gaq.push(['_setAllowLinker', true]);
		  _gaq.push(['_setDomainName', 'javatechig.com']);
		  _gaq.push(['_trackPageview']);
		  (function() {
		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
		<script type="text/javascript">
		function recordOutboundLink(link, category, action) {
					_gat._getTrackerByName()._trackEvent(category, action);
					if ( link.target == '_blank' ) return true;
			setTimeout('document.location = "' + link.href + '"', 100);
			return false;
		}
			/* use regular Javascript for this */
			function getAttr(ele, attr) {
				var result = (ele.getAttribute && ele.getAttribute(attr)) || null;
				if( !result ) {
					var attrs = ele.attributes;
					var length = attrs.length;
					for(var i = 0; i < length; i++)
					if(attr[i].nodeName === attr) result = attr[i].nodeValue;
				}
				return result;
			}
			function aiosp_addLoadEvent(func) {
			  var oldonload = window.onload;
			  if (typeof window.onload != 'function') {
			    window.onload = func;
			  } else {
			    window.onload = function() {
			      if (oldonload) {
			        oldonload();
			      }
			      func();
			    }
			  }
			}

			aiosp_addLoadEvent(function () {
				var links = document.getElementsByTagName('a');
				for (var x=0; x < links.length; x++) {
					if (typeof links[x] == 'undefined') continue;
					if (typeof links[x].onclick != 'undefined') continue;
					links[x].onclick = function () {
						var mydomain = new RegExp(document.domain, 'i');
						href = getAttr(this, 'href');
						if(href && href.toLowerCase().indexOf('http') === 0 && !mydomain.test(href)) {
							recordOutboundLink(this, 'Outbound Links', href);
						}
					}
				}
			});
		</script>
<!-- /all in one seo pack -->
  
</head>

<body class="single single-post postid-2985 single-format-standard">
<div id="page">
  <header id="mashhead" class="navbar navbar-inverse navbar-fixed-top" role="banner">
    <div class="navbar-inner">
      <div class="container">
                <a class="brand no-logo-image" href="http://javatechig.com/" title="JavatechIG.com" rel="home"> 
          <span>JavatechIG.com</span>
        </a>
        <ul id="menu-main-menu" class="nav nav-offcanvas"><li id="menu-item-2196" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-has-children menu-item-2196 has-sub-menu"><a href="http://javatechig.com">Home</a>
<i class="show-sub-menu-btn icon-chevron-right"></i><ul class="sub-menu">
	<li id="menu-item-1023" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1023"><a href="http://javatechig.com/authors/">Authors</a></li>
	<li id="menu-item-3839" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3839"><a href="http://javatechig.com/privacy-policy">Privacy Policy</a></li>
	<li id="menu-item-3838" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3838"><a href="http://javatechig.com/guest-blogging">Guest Blogging</a></li>
	<li id="menu-item-3837" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3837"><a href="http://javatechig.com/blog-sitemap">Sitemap</a></li>
	<li id="menu-item-3840" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3840"><a href="http://javatechig.com/contact-us">Contact Us</a></li>
</ul>
</li>
<li id="menu-item-3892" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-3892 has-sub-menu"><a href="http://javatechig.com/category/android">Android</a>
<i class="show-sub-menu-btn icon-chevron-right"></i><ul class="sub-menu">
	<li id="menu-item-3893" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3893"><a href="http://javatechig.com/tutorials/android-application-development-tutorials/">All Android Tutorials</a></li>
	<li id="menu-item-3896" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3896"><a href="http://javatechig.com/tag/android-ui/">Android UI Tutorials</a></li>
	<li id="menu-item-3894" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3894"><a href="http://javatechig.com/tag/android-advanced/">Android Advance Tutorials</a></li>
	<li id="menu-item-3895" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3895"><a href="http://javatechig.com/tag/android-how-tos/">Android How To&#8217;s</a></li>
</ul>
</li>
<li id="menu-item-3176" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-3176 has-sub-menu"><a href="http://javatechig.com/category/java">Java</a>
<i class="show-sub-menu-btn icon-chevron-right"></i><ul class="sub-menu">
	<li id="menu-item-3186" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3186"><a href="http://javatechig.com/category/java/">Core Java  Basics</a></li>
	<li id="menu-item-3184" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3184"><a href="http://javatechig.com/java/java-string-complete-tutorial/">Java String Complete Tutorial</a></li>
	<li id="menu-item-3185" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3185"><a href="http://javatechig.com/java/java-enum-programming-tutorial/">Java enum Complete Tutorial</a></li>
	<li id="menu-item-3183" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3183"><a href="http://javatechig.com/tag/design-patterns">Java Design Patterns</a></li>
</ul>
</li>
<li id="menu-item-2711" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-2711 has-sub-menu"><a href="http://javatechig.com/category/blackberry">Blackberry</a>
<i class="show-sub-menu-btn icon-chevron-right"></i><ul class="sub-menu">
	<li id="menu-item-3188" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3188"><a href="http://javatechig.com/category/blackberry/">All Blackberry Tutorials</a></li>
	<li id="menu-item-3187" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3187"><a href="http://javatechig.com/tag/blackberry-ui/">Blackberry UI Tutorials</a></li>
	<li id="menu-item-3192" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3192"><a href="http://javatechig.com/blackberry/http-connection-in-blackberry/">HTTP Connection in Blackberry</a></li>
	<li id="menu-item-3189" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3189"><a href="http://javatechig.com/blackberry/persistent-storage-in-blackberry/">PersistentStore in blackberry</a></li>
	<li id="menu-item-3191" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3191"><a href="http://javatechig.com/blackberry/recoding-call-in-blackberry/">Call Recording in Blackberry</a></li>
	<li id="menu-item-3190" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3190"><a href="http://javatechig.com/blackberry/blackberry-interview-questions/">Blackberry FAQ&#8217;s</a></li>
</ul>
</li>
<li id="menu-item-1811" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1811 has-sub-menu"><a href="http://javatechig.com/tutorials">More..</a>
<i class="show-sub-menu-btn icon-chevron-right"></i><ul class="sub-menu">
	<li id="menu-item-3252" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3252"><a href="http://javatechig.com/category/java/struts">Java Struts Tutorials</a></li>
	<li id="menu-item-484" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-484"><a href="http://javatechig.com/category/sencha-touch">Sencha Touch</a></li>
	<li id="menu-item-100" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-100"><a href="http://javatechig.com/category/design-patterns">Design Patterns</a></li>
	<li id="menu-item-95" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-95"><a href="http://javatechig.com/category/j2me">J2ME Tutorials</a></li>
	<li id="menu-item-98" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-98"><a href="http://javatechig.com/category/gaming">Gaming</a></li>
</ul>
</li>
<li id="menu-item-3958" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3958"><a href="http://javatechig.com/advertise">Advertise</a></li>
<li id="menu-item-4007" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-4007 has-sub-menu"><a href="http://javatechig.com/questions">Q&#038;A</a>
<i class="show-sub-menu-btn icon-chevron-right"></i><ul class="sub-menu">
	<li id="menu-item-4013" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4013"><a href="http://javatechig.com/questions">All Questions</a></li>
	<li id="menu-item-4012" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4012"><a href="http://javatechig.com/ask-question">Ask Question</a></li>
</ul>
</li>
</ul>        <div class="navbar-search pull-right">
          <i class="icon-search"></i>
          	<form method="get" id="searchform" action="http://javatechig.com/">
		<input type="text" class="search-query" name="s" id="s" placeholder="Search" />
	</form>
        </div>

        <!-- <ul class="nav pull-right">
          <li><a href="#myModal" data-toggle="modal"><i class="icon-user icon-white"></i></a></li>
        </ul> -->
      </div>
    </div>
  </header>
  <div class="handheld-header navbar navbar-inverse navbar-fixed-top">
    <button class="button-show-nav">
      <i class="icon-reorder"></i>
    </button>
        <a class="brand no-logo-image" href="http://javatechig.com/" title="JavatechIG.com" rel="home">
      <span>JavatechIG.com</span>
    </a>
    <button class="button-show-sidebar">
      <i class="icon-cog"></i>
    </button>
  </div>
  <div id="main" class="site-main">
    <div class="container"><div id="primary">
    <div id="content">
        <div id="side-content">
            <div class="stream-list">
    <div class="stream-list-inner">
        <article id="stream-post-2985" class="stream-post has-thumbnail reading-now">
            <time>Reading now</time>
            <div class="thumbnail">
                <a href="#">
                    <img width="60" height="32" src="http://javatechig.com/wp-content/uploads/2013/08/phonegap_plugin-featured_image-101x55.png" class="attachment-60x60 wp-post-image" alt="phonegap plugin featured image" />                </a>
            </div>
            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/phonegap/phonegap-sms-plugin-android" alt="Sending SMS from JavaScript using Phonegap SMS plugin">Sending SMS from JavaScript using Phonegap SMS plugin</a></h4>
            </div>
        </article>
        
                <article id="stream-post-16" class="stream-post has-thumbnail">
            <time data-time="Aug 03, 2013">Aug 03, 2013</time>
            <div class="thumbnail">
                <a href="http://javatechig.com/android/android-button-example" alt="Android Button Example" >
                    <img width="59" height="55" src="http://javatechig.com/wp-content/uploads/2013/05/android_buttons-59x55.png" class="attachment-60,60 wp-post-image" alt="" />                </a>
            </div>

            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/android/android-button-example" alt="Android Button Example">Android Button Example</a></h4>
            </div>
        </article>
                <article id="stream-post-3758" class="stream-post has-thumbnail">
            <time data-time="Jul 30, 2013">Jul 30, 2013</time>
            <div class="thumbnail">
                <a href="http://javatechig.com/android/how-to-programmatically-zip-and-unzip-file-in-android" alt="How to Programmatically Zip and Unzip File in Android" >
                    <img width="37" height="55" src="http://javatechig.com/wp-content/uploads/2013/09/How-to-Programmatically-Zip-and-Unzip-File-in-Android--37x55.png" class="attachment-60,60 wp-post-image" alt="How to Programmatically Zip and Unzip File in Android" />                </a>
            </div>

            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/android/how-to-programmatically-zip-and-unzip-file-in-android" alt="How to Programmatically Zip and Unzip File in Android">How to Programmatically Zip and Unzip File in Android</a></h4>
            </div>
        </article>
                <article id="stream-post-2975" class="stream-post has-thumbnail">
            <time data-time="Jul 29, 2013">Jul 29, 2013</time>
            <div class="thumbnail">
                <a href="http://javatechig.com/java/convert-string-to-long-in-java" alt="Convert String to Long in Java" >
                    <img width="60" height="37" src="http://javatechig.com/wp-content/uploads/2013/07/Java_Header-89x55.png" class="attachment-60,60 wp-post-image" alt="Java_Header" />                </a>
            </div>

            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/java/convert-string-to-long-in-java" alt="Convert String to Long in Java">Convert String to Long in Java</a></h4>
            </div>
        </article>
                <article id="stream-post-2958" class="stream-post has-thumbnail">
            <time data-time="Jul 28, 2013">Jul 28, 2013</time>
            <div class="thumbnail">
                <a href="http://javatechig.com/java/converting-array-to-list-in-java" alt="Converting Array to List in java" >
                    <img width="60" height="37" src="http://javatechig.com/wp-content/uploads/2013/07/Java_Header-89x55.png" class="attachment-60,60 wp-post-image" alt="Java_Header" />                </a>
            </div>

            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/java/converting-array-to-list-in-java" alt="Converting Array to List in java">Converting Array to List in java</a></h4>
            </div>
        </article>
                <article id="stream-post-2943" class="stream-post has-thumbnail">
            <time data-time="Jul 28, 2013">Jul 28, 2013</time>
            <div class="thumbnail">
                <a href="http://javatechig.com/java/searching-arrays-and-collections-in-java" alt="Searching arrays and collections in java" >
                    <img width="60" height="37" src="http://javatechig.com/wp-content/uploads/2013/07/Java_Header-89x55.png" class="attachment-60,60 wp-post-image" alt="Java_Header" />                </a>
            </div>

            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/java/searching-arrays-and-collections-in-java" alt="Searching arrays and collections in java">Searching arrays and collections in java</a></h4>
            </div>
        </article>
                <article id="stream-post-2933" class="stream-post has-thumbnail">
            <time data-time="Jul 28, 2013">Jul 28, 2013</time>
            <div class="thumbnail">
                <a href="http://javatechig.com/java/using-static-import-in-java" alt="Using Static Import in Java" >
                    <img width="60" height="37" src="http://javatechig.com/wp-content/uploads/2013/07/Java_Header-89x55.png" class="attachment-60,60 wp-post-image" alt="Java_Header" />                </a>
            </div>

            <div class="content">
                <h4 class="title"><a href="http://javatechig.com/java/using-static-import-in-java" alt="Using Static Import in Java">Using Static Import in Java</a></h4>
            </div>
        </article>
                <a href="#" class="loadmore" data-last="2933">Load more</a>
    </div>
</div>

        </div>

        <div id="main-content">
            <div id="main-content-inner">
                <div class="nextpost">
                                            <article id="post-2985" class="post-2985 post type-post status-publish format-standard hentry category-phonegap tag-phonegap clearfix">
	<div class="entry-inner">
		<header class="entry-header">
			<h1 class="entry-title">Sending SMS from JavaScript using Phonegap SMS plugin</h1>
			<div class="entry-meta meta-top">
				<span class="categories-links"><a href="http://javatechig.com/category/phonegap" title="View all posts in PhoneGap" rel="category tag">PhoneGap</a></span> <span class="author vcard">By <a class="url fn n" href="http://javatechig.com/author/nilanchala" title="View all posts by Nilanchala" rel="author">Nilanchala</a></span><span class="sep"> / </span><time class="entry-date" datetime="2013-08-03T10:35:50+00:00">August 3, 2013</time>
					
				<div class="post-navigation">
					<a class="btn btn-inverse nex" href="#"><span>next</span><i class="icon-angle-right"></i></a>
					<div class="nav-tip visible-desktop">Use ← → keys to navigate</div>	
				</div>

				<ul class="unstyled entry-actions">
					<li><a href="javscript:void(0)" onclick="window.print();"><i class="icon-print"></i></a>
					</li>

					<li><a href="mailto:webmaster@designwall.com?Subject=Sending+SMS+from+JavaScript+using+Phonegap+SMS+plugin"><i class="icon-envelope-alt"></i></a>
					</li>
					
					<li>
						<a href="#" class="font-size-plus"> A+ </a>
						<a href="#" class="font-size-minus"> A-</a>
					</li>
				</ul>
			</div>
		</header>

		<div class="entry-content">
			<div id="toc_container" class="toc_white no_bullets"><p class="toc_title">Table of Contents</p><ul class="toc_list"><li><a href="#1-introduction">1. Introduction</a></li><li><a href="#2-plugin-download-link">2. Plugin Download Link</a></li><li><a href="#3-features-supported">3. Features supported</a></li><li><a href="#4-how-to-integrate-the-sms-plugin">4. How to integrate the SMS plugin</a><ul><li><a href="#41sending-sms-using-intent-method">4.1.Sending SMS using Intent method</a></li><li><a href="#42-sending-sms-using-sms-manager">4.2. Sending SMS using SMS manager</a></li></ul></li><li><a href="#5-complete-example">5. Complete Example</a><ul><li><a href="#51-how-to-integrate-the-sms-plugin">5.1. How to integrate the SMS plugin</a></li><li><a href="#52-creating-html-and-javascript-files">5.2. Creating html and JavaScript files</a></li><li><a href="#53-adding-plugin-source-to-project">5.3. Adding plugin source to project</a></li><li><a href="#54-configuring-sms-plugin">5.4. Configuring SMS plugin</a></li></ul></li><li><a href="#6-references">6. References</a></li></ul></div>

<h1><span id="1-introduction">1. Introduction</span></h1>
<p>This Android Phonegap plugin allows you to easily send SMS in android using both native SMS Manager or by invoking the default android SMS app. This plugin works with PhoneGap 2.9.x version. The sample example is tested with Phonegap 2.9.0 and Android 4.1.x on a Samsung Galaxy S III device.</p>
<h1><span id="2-plugin-download-link">2. Plugin Download Link</span></h1>
<p><a target="_blank" title="https://github.com/javatechig/phonegap-sms-plugin" href="https://github.com/javatechig/phonegap-sms-plugin"><strong>https://github.com/javatechig/phonegap-sms-plugin</strong></a></p>
<h1><span id="3-features-supported">3. Features supported</span></h1>
<ol>
<li>Send SMS using default SMS app using android intent method</li>
<li>Sends SMS using SMS manager</li>
</ol>
<p>The plugin source code is hosted over GitHub. You can grab a copy from below link</p>
<p><a href="http://javatechig.com/wp-content/uploads/2013/08/Sending-SMS-Using-PhoneGap-Plugin.png" title="Sending SMS Using PhoneGap Plugin" rel="lightbox2985"><img class="lazy aligncenter size-full wp-image-4026" alt="Sending SMS Using PhoneGap Plugin" src="http://javatechig.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif" data-original="http://javatechig.com/wp-content/uploads/2013/08/Sending-SMS-Using-PhoneGap-Plugin.png" width="671" height="483" /><noscript><img class="aligncenter size-full wp-image-4026" alt="Sending SMS Using PhoneGap Plugin" src="http://javatechig.com/wp-content/uploads/2013/08/Sending-SMS-Using-PhoneGap-Plugin.png" width="671" height="483" /></noscript></a></p>
<p>&nbsp;</p>
<h1><span id="4-how-to-integrate-the-sms-plugin">4. How to integrate the SMS plugin</span></h1>
<ul>
<li>Make sure you are using Phonegap plugin 2.9.x. If you are using a older versiion of Codova/PhoneGap plugin, you may grab a new copy from <a target="_blank" title="phonegap.com" href="http://www.phonegap.com" target="_blank">http://www.phonegap.com</a></li>
<li>Place smsplugin.js file in your project&#8217;s www folder and include a reference to it in your html files. You can include reference by using</li>
</ul>
<pre class="brush:html"> 
&lt;!-- for codova plugins --&gt;
      &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="smsplugin.js"&gt;&lt;/script&gt;</pre>
<ul>
<li>Add the SmsPlugin.java file from src to your project&#8217;s src hierarchy. and then reference the plugin in your res/config.xml file</li>
</ul>
<pre class="brush:xml"> 
 &lt;feature name="SmsPlugin"&gt;
      &lt;param name="android-package" value="org.apache.cordova.plugin.SmsPlugin"/&gt;
 &lt;/feature&gt;</pre>
<ul>
<li>Ensure that your manifest contains the necessary permissions to send SMS messages.</li>
</ul>
<pre class="brush:xml"> &lt;uses-permission android:name="android.permission.SEND_SMS"</pre>
<ul>
<li>Now let us call the plugin method by passing appropriate parameters to send SMS.</li>
</ul>
<h2><span id="41sending-sms-using-intent-method">4.1.Sending SMS using Intent method</span></h2>
<pre class="brush:java">// intent param is needed to send sms using sms intent
              $("#btnSmsIntent").click(function(){
	            SmsPlugin.prototype.send('9731563021', 'Your Message Here!', 'INTENT'
				    function () { 
				       alert('Message sent successfully');  
				    },
				    function (e) {
				        alert('Message Failed:' + e);
				    }
				);               
             });</pre>
<h2><span id="42-sending-sms-using-sms-manager">4.2. Sending SMS using SMS manager</span></h2>
<pre class="brush:java">// intent param is needed to send sms using sms intent
              $("#btnSmsIntent").click(function(){
	            SmsPlugin.prototype.send('9731563021', 'Your Message Here!', ' '
				    function () { 
				       alert('Message sent successfully');  
				    },
				    function (e) {
				        alert('Message Failed:' + e);
				    }
				);               
             });</pre>
<h1><span id="5-complete-example">5. Complete Example</span></h1>
<h2><span id="51-how-to-integrate-the-sms-plugin">5.1. How to integrate the SMS plugin</span></h2>
<p>Create a new android project using File-&gt; New android application using your eclipse. Follow the new app wizard steps to create an new android app. Make sure to add your android targets. In my example, I have used android 4.x as my build target for my android app.</p>
<h2><span id="52-creating-html-and-javascript-files">5.2. Creating html and JavaScript files</span></h2>
<p>Create a folder <code>'www'</code> under your project assets folder. The <code>www</code> folder will contain all of the JavaScript and html pages and library&#8217;s. If you look at the screen above, I have used <code>jQueery</code> framework for building such a simple user interface. Now I term it as simple, as I got this html from one of my JavaScript expert friend. However this simple example will be enough for demonstration.</p>
<p>Now take a look at my index.html files</p>
<!-- Quick Adsense WordPress Plugin: http://quicksense.net/ -->
<div style="float:none;margin:10px 0 10px 0;text-align:center;">
<!-- Begin Adversal 468x60 - javatechig.com Code -->
<SCRIPT SRC="http://go.adversal.com/ttj?id=1613589&size=468x60&promo_sizes=320x50,300x50,216x36&promo_alignment=center" TYPE="text/javascript"></SCRIPT>
<!-- End Adversal 468x60 - javatechig.com Code -->
</div>

<pre class="brush:html">&lt;!DOCTYPE html&gt;
&lt;html&gt;
   &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
      &lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;link rel="stylesheet" href="jquery.mobile-1.3.1.min.css"&gt;
      &lt;!-- Extra Codiqa features --&gt;
      &lt;link rel="stylesheet" href="codiqa.ext.css"&gt;
      &lt;!-- jQuery and jQuery Mobile --&gt;
      &lt;script src="jquery-1.9.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="jquery.mobile-1.3.1.min.js"&gt;&lt;/script&gt;
      &lt;!-- Extra Codiqa features --&gt;
      &lt;script src="codiqa.ext.js"&gt;&lt;/script&gt;
      &lt;!-- for codova plugins --&gt;
      &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="smsplugin.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
         $(document).ready(function() {

         //leave empty for sending sms using default intent
             $("#btnDefaultSMS").click(function(){

             	var number = $("#numberTxt").val();
             	var message = $("#messageTxt").val();
             SmsPlugin.prototype.send(number, message, '',
         function () { 
           alert('Message sent successfully');  
         },
         function (e) {
            alert('Message Failed:' + e);
         }
         );               
             }); 
         });

      &lt;/script&gt;
   &lt;/head&gt;
   &lt;body&gt;
      &lt;!-- Home --&gt;
      &lt;div data-role="page" id="page1"&gt;
         &lt;div data-theme="a" data-role="header"&gt;
            &lt;h4&gt;
               SMS Example
            &lt;/h4&gt;
         &lt;/div&gt;
         &lt;div data-role="content"&gt;
            &lt;div data-role="fieldcontain"&gt;
               &lt;input name="" id="numberTxt" placeholder="Enter mobile number" value=""
                  type="tel" data-mini="true"&gt;&lt;br&gt;
               &lt;textarea name="" id="messageTxt" placeholder="Enter message" data-mini="false"&gt;&lt;/textarea&gt;
               &lt;br&gt;
               &lt;input id="btnDefaultSMS" type="submit" data-theme="e"
                  value="Send SMS" data-mini="false"&gt;
            &lt;/div&gt;
         &lt;/div&gt;
      &lt;/div&gt;
   &lt;/body&gt;
&lt;/html&gt;</pre>
<p>In the &#8216;index.html&#8217; file, you need the add the reference of &#8216;smsplugin.js&#8217; file.</p>
<h2><span id="53-adding-plugin-source-to-project">5.3. Adding plugin source to project</span></h2>
<pre class="brush:java">import org.json.JSONArray;
import org.json.JSONException;
import android.app.PendingIntent;
import android.content.Intent;
import android.telephony.SmsManager;
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.PluginResult;

public class SmsPlugin extends CordovaPlugin {
	public final String ACTION_SEND_SMS = "SendSMS";

	@Override
	public boolean execute(String action, JSONArray args,
			final CallbackContext callbackContext) throws JSONException {
		if (action.equals(ACTION_SEND_SMS)) {
			try {
				String phoneNumber = args.getString(0);
				String message = args.getString(1);
				String method = args.getString(2);

				if (method.equalsIgnoreCase("INTENT")) {
					invokeSMSIntent(phoneNumber, message);
					callbackContext.sendPluginResult(new PluginResult(
							PluginResult.Status.NO_RESULT));
				} else {
					sendSMS(phoneNumber, message);
				}

				callbackContext.sendPluginResult(new PluginResult(
						PluginResult.Status.OK));
				return true;
			} catch (JSONException ex) {
				callbackContext.sendPluginResult(new PluginResult(
						PluginResult.Status.JSON_EXCEPTION));
			}
		}
		return false;
	}

	private void invokeSMSIntent(String phoneNumber, String message) {
		Intent sendIntent = new Intent(Intent.ACTION_VIEW);
		sendIntent.putExtra("sms_body", message);
		sendIntent.setType("vnd.android-dir/mms-sms");
		this.cordova.getActivity().startActivity(sendIntent);
	}

	private void sendSMS(String phoneNumber, String message) {
		SmsManager manager = SmsManager.getDefault();
		PendingIntent sentIntent = PendingIntent.getActivity(
				this.cordova.getActivity(), 0, new Intent(), 0);
		manager.sendTextMessage(phoneNumber, null, message, sentIntent, null);
	}

}</pre>
<h2><span id="54-configuring-sms-plugin">5.4. Configuring SMS plugin</span></h2>
<p>Add the <code>SmsPlugin.java</code> file from src to your project&#8217;s src hierarchy. and then reference the plugin in your res/config.xml file</p>
<pre class="brush:xml"> 
 &lt;feature name="SmsPlugin"&gt;
      &lt;param name="android-package" value="org.apache.cordova.plugin.SmsPlugin"/&gt;
 &lt;/feature&gt;</pre>
<p>Ensure that your manifest contains the necessary permissions to send SMS messages.</p>
<pre class="brush:xml"> &lt;uses-permission android:name="android.permission.SEND_SMS"</pre>
<p>Now let us call the plugin method by passing appropriate parameters to send SMS.</p>
<h1><span id="6-references">6. References</span></h1>
<p><strong><a target="_blank" title="http://phonegap.com/‎" href="http://phonegap.com/‎" target="_blank">http://phonegap.com/‎</a></strong></p>

<!-- Quick Adsense WordPress Plugin: http://quicksense.net/ -->
<div style="float:none;margin:10px 0 10px 0;text-align:center;">
<!-- Begin Adversal 468x60 - javatechig.com Code -->
<SCRIPT SRC="http://go.adversal.com/ttj?id=1613589&size=468x60&promo_sizes=320x50,300x50,216x36&promo_alignment=center" TYPE="text/javascript"></SCRIPT>
<!-- End Adversal 468x60 - javatechig.com Code -->
</div>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div><div class="bawmrp"><h5>Related Posts:</h5><ul><li class="bawmrp_manual"><a href="http://javatechig.com/sencha-touch/main-steps-to-create-sencha-touch-application">Main Steps to Create Sencha Touch Application</a></li>
<li class="bawmrp_manual"><a href="http://javatechig.com/phonegap/what-is-phonegap">What is Phonegap Cordova</a></li>
<li class="bawmrp_manual"><a href="http://javatechig.com/sencha-touch/getting-started-with-sencha-touch">Getting Started with Sencha Touch</a></li>
<li class="bawmrp_manual"><a href="http://javatechig.com/sencha-touch/sencha-touch-button-example">Sencha Touch Button Example</a></li>
<li class="bawmrp_manual"><a href="http://javatechig.com/sencha-touch/creating-hello-world-in-sencha-touch">Creating “Hello World!” Using Sencha Touch</a></li></ul></div>					</div>
		
		<footer class="entry-meta meta-bottom">

					    <div class="entry-tags">
		    	<div class="tag-action">
			    <strong>Tags:			    </strong>
			    <span class="tags-links">
			    	<a href="http://javatechig.com/tag/phonegap" rel="tag">PhoneGap</a>			    </span>
		        </div>
		    </div>
		    		    <ul class="social-buttons">
    <li class="facebook"><iframe src="//www.facebook.com/plugins/like.php?href=http://javatechig.com/phonegap/phonegap-sms-plugin-android&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21&amp;appId=275762139167826" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe></li>
    <li class="twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://javatechig.com/phonegap/phonegap-sms-plugin-android" data-text="Sending SMS from JavaScript using Phonegap SMS plugin" data-via="designwall_com">Tweet</a></li>
    <li class="google_plus"><div class="g-plusone" data-size="medium" data-href="http://javatechig.com/phonegap/phonegap-sms-plugin-android"></div></li>
</ul>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
			
					    <div class="author-info">
	        	<div class="author-avatar">
					<img alt='' src='http://0.gravatar.com/avatar/888987dcf1a02f2e0690a550683ccc47?s=100&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' />				</div><!-- .author-avatar -->

				<h2 class="author-name"><a href="http://javatechig.com/author/nilanchala" rel="author">Nilanchala</a></h2>
				<div class="author-description">A blogger, bit of a tech freak and a software developer. He is working around smart phone arena with technologies like android, blackberry, PhoneGap and Sencha Touch.</div>
	        </div>
	        		</footer>
	</div>
</article>                    
                                                    <div class="related-post">
                                    
                                    <h2 class="related-title">You may also like</h2>
                                    <div class="related-content display-grid display-grid-content">
                                                                                                                                                                                    <article id="post-3396" class="post-3396 post type-post status-publish format-standard hentry category-phonegap tag-cpt tag-phonegap" >
    <header class="entry-header">
                <div class="entry-thumbnail hover-thumb">
            <a href="http://javatechig.com/phonegap/creating-hello-world-using-phonegap-cordova-plugin" title="Permalink to Creating &#8220;Hello World&#8221; using PhoneGap/Cordova Plugin" rel="bookmark">
            <img width="1" height="1" src="http://javatechig.com/wp-content/uploads/2013/09/Creating-HelloWorld-project-using-PhoneGap-output.png" class="attachment-thumbnail wp-post-image" alt="Creating HelloWorld project using PhoneGap output" />            </a>
        </div>
        
        <div class="entry-meta meta-top">
            <span class="categories-links"><a href="http://javatechig.com/category/phonegap" title="View all posts in PhoneGap" rel="category tag">PhoneGap</a></span> <span class="author vcard">By <a class="url fn n" href="http://javatechig.com/author/nilanchala" title="View all posts by Nilanchala" rel="author">Nilanchala</a></span><span class="sep"> / </span><time class="entry-date" datetime="2013-09-06T14:44:03+00:00">September 6, 2013</time>
	        </div>

        <h1 class="entry-title">
            <a href="http://javatechig.com/phonegap/creating-hello-world-using-phonegap-cordova-plugin" title="Permalink to Creating &#8220;Hello World&#8221; using PhoneGap/Cordova Plugin" rel="bookmark">Creating &#8220;Hello World&#8221; using PhoneGap/Cordova Plugin</a>
        </h1>
    </header>
</article>                                                                                                                                                <article id="post-619" class="post-619 post type-post status-publish format-standard hentry category-phonegap tag-cpt tag-phonegap" >
    <header class="entry-header">
                <div class="entry-thumbnail hover-thumb">
            <a href="http://javatechig.com/phonegap/what-is-phonegap" title="Permalink to What is Phonegap Cordova" rel="bookmark">
            <img width="150" height="150" src="http://javatechig.com/wp-content/uploads/2013/02/phonegap-archiecture-150x150.png" class="attachment-thumbnail wp-post-image" alt="phonegap-archiecture" />            </a>
        </div>
        
        <div class="entry-meta meta-top">
            <span class="categories-links"><a href="http://javatechig.com/category/phonegap" title="View all posts in PhoneGap" rel="category tag">PhoneGap</a></span> <span class="author vcard">By <a class="url fn n" href="http://javatechig.com/author/bibhudatta" title="View all posts by Bibhudatta" rel="author">Bibhudatta</a></span><span class="sep"> / </span><time class="entry-date" datetime="2013-02-25T14:25:38+00:00">February 25, 2013</time>
	        </div>

        <h1 class="entry-title">
            <a href="http://javatechig.com/phonegap/what-is-phonegap" title="Permalink to What is Phonegap Cordova" rel="bookmark">What is Phonegap Cordova</a>
        </h1>
    </header>
</article>                                                                        </div>
                                </div>
                    
                                        
<div id="disqus_thread">
                    <div id="dsq-content">


            <ul id="dsq-comments">
                    <li class="comment even thread-even depth-1" id="dsq-comment-7030">
        <div id="dsq-comment-header-7030" class="dsq-comment-header">
            <cite id="dsq-cite-7030">
                <span id="dsq-author-user-7030">prabakaran</span>
            </cite>
        </div>
        <div id="dsq-comment-body-7030" class="dsq-comment-body">
            <div id="dsq-comment-message-7030" class="dsq-comment-message"><p>hai, for me message sent successfully..but in mobile i didn&#039;t receive it.</p>
</div>
        </div>

    </li><!-- #comment-## -->
    <li class="comment odd alt thread-odd thread-alt depth-1" id="dsq-comment-7007">
        <div id="dsq-comment-header-7007" class="dsq-comment-header">
            <cite id="dsq-cite-7007">
http://javatechig.com/                <span id="dsq-author-user-7007">javatechig</span>
            </cite>
        </div>
        <div id="dsq-comment-body-7007" class="dsq-comment-body">
            <div id="dsq-comment-message-7007" class="dsq-comment-message"><p>@arun, Yes not required. It was just for demonstration purpose. </p>
</div>
        </div>

    </li><!-- #comment-## -->
    <li class="comment even thread-even depth-1" id="dsq-comment-6957">
        <div id="dsq-comment-header-6957" class="dsq-comment-header">
            <cite id="dsq-cite-6957">
                <span id="dsq-author-user-6957">erumhannan</span>
            </cite>
        </div>
        <div id="dsq-comment-body-6957" class="dsq-comment-body">
            <div id="dsq-comment-message-6957" class="dsq-comment-message"><p>i  am getting alert &quot;message sent successfully&quot;  but unfortunately i am not recieving message on my contact number every thing is working fine  there is no error :   i have changed line from //PhoneGap.addPlugin(&quot;sms&quot;, new SmsPlugin());                                                                                               to this :                                                                                                                                                             PhoneGap.sms = new SmsPlugin();   because i was getting  error :                                                                        09-30 17:31:35.890: I/Web Console(29459): Failed to run constructor: TypeError: Object # has no method &#039;addPlugin&#039; at file:///android_asset/www/js/lib/cordova.js:317   when i changed this line now there is no error but i m not recieving any message on my cell . i am using Cordova2.9.0  ,jquery-1.9.1 and jquery-mobile-1.3.2</p>
</div>
        </div>

    </li><!-- #comment-## -->
    <li class="comment odd alt thread-odd thread-alt depth-1" id="dsq-comment-6856">
        <div id="dsq-comment-header-6856" class="dsq-comment-header">
            <cite id="dsq-cite-6856">
                <span id="dsq-author-user-6856">raditya</span>
            </cite>
        </div>
        <div id="dsq-comment-body-6856" class="dsq-comment-body">
            <div id="dsq-comment-message-6856" class="dsq-comment-message"><p>why i got error &quot;message failed: class not found&quot;, Thanks</p>
</div>
        </div>

    <ul class="children">
    <li class="comment even depth-2" id="dsq-comment-6918">
        <div id="dsq-comment-header-6918" class="dsq-comment-header">
            <cite id="dsq-cite-6918">
http://adamwadeharris.com/                <span id="dsq-author-user-6918">Adam Harris</span>
            </cite>
        </div>
        <div id="dsq-comment-body-6918" class="dsq-comment-body">
            <div id="dsq-comment-message-6918" class="dsq-comment-message"><p>I do as well. I&#039;m using Phonegap 3 and haven&#039;t figured out how to use older plugins yet. Apparently this plugin works fine with 2.9. I posted a question about this here: <a href="http://stackoverflow.com/questions/18771095" rel="nofollow" target="_blank" >http://stackoverflow.com/questions/18771095</a></p>
</div>
        </div>

    </li><!-- #comment-## -->
    <li class="comment odd alt depth-2" id="dsq-comment-7029">
        <div id="dsq-comment-header-7029" class="dsq-comment-header">
            <cite id="dsq-cite-7029">
                <span id="dsq-author-user-7029">prabakaran</span>
            </cite>
        </div>
        <div id="dsq-comment-body-7029" class="dsq-comment-body">
            <div id="dsq-comment-message-7029" class="dsq-comment-message"><p>did u solve the issues..?</p>
</div>
        </div>

    </li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
            </ul>


        </div>

    </div>

<script type="text/javascript">
/* <![CDATA[ */
    var disqus_url = 'http://javatechig.com/phonegap/phonegap-sms-plugin-android';
    var disqus_identifier = '2985 http://javatechig.com/?p=2985';
    var disqus_container_id = 'disqus_thread';
    var disqus_domain = 'disqus.com';
    var disqus_shortname = 'javatechig';
    var disqus_title = "Sending SMS from JavaScript using Phonegap SMS plugin";
        var disqus_config = function () {
        var config = this; // Access to the config object
        config.language = '';

        /*
           All currently supported events:
            * preData — fires just before we request for initial data
            * preInit - fires after we get initial data but before we load any dependencies
            * onInit  - fires when all dependencies are resolved but before dtpl template is rendered
            * afterRender - fires when template is rendered but before we show it
            * onReady - everything is done
         */

        config.callbacks.preData.push(function() {
            // clear out the container (its filled for SEO/legacy purposes)
            document.getElementById(disqus_container_id).innerHTML = '';
        });
                config.callbacks.onReady.push(function() {
            // sync comments in the background so we don't block the page
            var script = document.createElement('script');
            script.async = true;
            script.src = '?cf_action=sync_comments&post_id=2985';

            var firstScript = document.getElementsByTagName( "script" )[0];
            firstScript.parentNode.insertBefore(script, firstScript);
        });
                    };
/* ]]> */
</script>

<script type="text/javascript">
/* <![CDATA[ */
    var DsqLocal = {
        'trackbacks': [
        ],
        'trackback_url': "http:\/\/javatechig.com\/phonegap\/phonegap-sms-plugin-android\/trackback"    };
/* ]]> */
</script>

<script type="text/javascript">
/* <![CDATA[ */
(function() {
    var dsq = document.createElement('script'); dsq.type = 'text/javascript';
    dsq.async = true;
    dsq.src = '//' + disqus_shortname + '.' + 'disqus.com' + '/embed.js?pname=wordpress&pver=2.74';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
/* ]]> */
</script>
                                    </div>
            </div>
        </div>
    </div>
</div>
<div id="secondary">
    <div class="secondary-inner">
            <aside id="cube3x-social-2" class="widget cube3x_social"><script type="text/javascript">
jQuery(document).ready(function(){
	var options;
	var services =new Array({"name":"facebook","id":"","subscriber_count":""},{"name":"twitter","id":"","subscriber_count":""},{"name":"gplus","id":"","subscriber_count":""},{"name":"linkedin","id":"","subscriber_count":""},{"name":"stumpleupon","id":"","subscriber_count":""});
	options = {
		services : services,
		source : 1,
		sites : new Array("facebook","twitter","gplus","linkedin","stumpleupon"),
		plugin_url : "http://javatechig.com/wp-content/plugins/all-in-one-social-lite/"
	};
	load_all_in_one_social(options);
});
</script><div class="cube3x-social-wrapper">
	<div class="total-share-count-wrapper">
		<div class="total_shares">0</div>
		<div class="shares_text">Shares</div>
	</div>
	<div class="social-wrapper">
				<div class="social-row facebook-wrapper">
			<div class="social-row1">
				<div class="social-site">Facebook</div>
				<div class="social-count">0</div>
			</div>
			<div class="social-row2">
				<div class="nofill"></div>
				<div class="fill"></div>
			</div>
		</div>	
        		<div class="social-row twitter-wrapper">
			<div class="social-row1">
				<div class="social-site">Twitter</div>
				<div class="social-count">0</div>
			</div>
			<div class="social-row2">
				<div class="nofill"></div>
				<div class="fill"></div>
			</div>
		</div>	
				<div class="social-row gplus-wrapper">
			<div class="social-row1">
				<div class="social-site">Google</div>
				<div class="social-count">0</div>
			</div>
			<div class="social-row2">
				<div class="nofill"></div>
				<div class="fill"></div>
			</div>
		</div>	
				<div class="social-row linkedin-wrapper">
			<div class="social-row1">
				<div class="social-site">Linkedin</div>
				<div class="social-count">0</div>
			</div>
			<div class="social-row2">
				<div class="nofill"></div>
				<div class="fill"></div>
			</div>
		</div>	
				<div class="social-row stumpleupon-wrapper">
			<div class="social-row1">
				<div class="social-site">StumpleUpon</div>
				<div class="social-count">0</div>
			</div>
			<div class="social-row2">
				<div class="nofill"></div>
				<div class="fill"></div>
			</div>
		</div>	
	</div>
</div></aside><aside id="text-35" class="widget widget_text">			<div class="textwidget"><!-- Begin Adversal 300x250 - javatechig.com Code -->
<SCRIPT SRC="http://go.adversal.com/ttj?id=1613589&size=300x250&promo_sizes=250x250,200x200,180x150&promo_alignment=center" TYPE="text/javascript"></SCRIPT>
<!-- End Adversal 300x250 - javatechig.com Code --></div>
		</aside><aside id="text-36" class="widget widget_text"><h3 class="widget-title">ANDROID TUTORIALS</h3>			<div class="textwidget"><ul class="display-posts-listing"><li class="listing-item"><a href="http://javatechig.com/android/android-input-dialog-example">Android input dialog example</a></li><li class="listing-item"><a href="http://javatechig.com/android/android-checkbox-example">Android Checkbox Example</a></li><li class="listing-item"><a href="http://javatechig.com/android/android-custom-dialog-example">Android custom dialog example</a></li><li class="listing-item"><a href="http://javatechig.com/android/caching-bitmaps-and-managing-bitmap-memory-in-android-official-video">Caching Bitmaps and Managing Bitmap Memory in Android- Official Video</a></li><li class="listing-item"><a href="http://javatechig.com/android/android-imageview-example">Android ImageView Example</a></li><li class="listing-item"><a href="http://javatechig.com/android/integrating-google-analytics-in-android-example">Integrating Google Analytics in Android Example</a></li><li class="listing-item"><a href="http://javatechig.com/android/android-handler-example">Android Handler Example</a></li><li class="listing-item"><a href="http://javatechig.com/android/get-device-id-example-in-android">Get Device ID Example in Android</a></li><li class="listing-item"><a href="http://javatechig.com/android/listing-all-sdcard-filenames-with-extensions-in-android">Listing all SDCard Filenames with extensions in android</a></li><li class="listing-item"><a href="http://javatechig.com/android/navigation-drawer-android-example">Navigation Drawer Android Example</a></li><li class="listing-item"><a href="http://javatechig.com/android/how-to-start-an-application-at-device-bootup-in-android">How to Start an Application at Device Bootup in Android</a></li><li class="listing-item"><a href="http://javatechig.com/android/textswitcher-and-imageswitcher-example-in-android">TextSwitcher and ImageSwitcher Example in Android</a></li><li class="listing-item"><a href="http://javatechig.com/android/creating-custom-and-compound-views-in-android-tutorial">Creating Custom and Compound Views in Android Tutorial</a></li><li class="listing-item"><a href="http://javatechig.com/android/android-include-tag-layout-example">Android include tag layout example</a></li><li class="listing-item"><a href="http://javatechig.com/android/how-to-send-email-in-android">How To Send Email In Android</a></li></ul></div>
		</aside><aside id="categories-2" class="widget widget_categories"><h3 class="widget-title">Categories</h3>		<ul>
	<li class="cat-item cat-item-18"><a href="http://javatechig.com/category/android" title="Android is Google&#039;s software stack for mobile devices, developed by Google and the Open Handset Alliance. The Android SDK provides a set of tools and APIs to develop Android applications, using Java. So, if you know Java, Android programming is just a step away from compilation. In this series of tutorials, we show you the list of basic tutorials to get you start android programming.

References
	Android Developer
	Android Fundamental
	Android in Wikipedia">Android</a>
</li>
	<li class="cat-item cat-item-92"><a href="http://javatechig.com/category/app-design" title="View all posts filed under App Design">App Design</a>
</li>
	<li class="cat-item cat-item-7"><a href="http://javatechig.com/category/blackberry" title="BlackBerry, developed by Research in Motion, is a family of smartphone and tablet devices with common functions like address manager, personal assistant, calendar etc. It has been popular with executives, partly because of the Push email service that lets a user receive email on their BlackBerry device much like SMS messages are delivered. In this series of tutorials, we show you the list of basic tutorials to get you start with blackberry programming.

RIM provides a Java SDK with Eclipse plugins for developing software for BlackBerry. They also provide desktop simulators for different devices. You can develop for BlackBerry on Windows or Mac, but the simulators are available for Windows only. For Mac, you will need to connect an actual device for testing/debugging.  The BlackBerry is the latest OS released on the year of 2012, it offers developers the choice of a C/C++ SDK, Adobe AIR, HTML5 via WebWorks, and will also be able to run Java applications developed for Android platforms">Blackberry</a>
</li>
	<li class="cat-item cat-item-8"><a href="http://javatechig.com/category/design-patterns" title="View all posts filed under Design Patterns">Design Patterns</a>
</li>
	<li class="cat-item cat-item-6"><a href="http://javatechig.com/category/gaming" title="View all posts filed under Gaming">Gaming</a>
</li>
	<li class="cat-item cat-item-46"><a href="http://javatechig.com/category/ibm-worklight" title="View all posts filed under IBM Worklight">IBM Worklight</a>
</li>
	<li class="cat-item cat-item-9"><a href="http://javatechig.com/category/j2me" title="View all posts filed under J2ME">J2ME</a>
</li>
	<li class="cat-item cat-item-91"><a href="http://javatechig.com/category/java" title="View all posts filed under Java">Java</a>
</li>
	<li class="cat-item cat-item-94"><a href="http://javatechig.com/category/java-test" title="Practice Online Java Programming Test and find out how much you score before you appear for your next interview and written test. The is a primer course test in the basic of understanding how Java programming works. Throughout the test, we tackled with a variety of java programming concepts.

View All Practice Questions">Java Test</a>
</li>
	<li class="cat-item cat-item-34"><a href="http://javatechig.com/category/phonegap" title="View all posts filed under PhoneGap">PhoneGap</a>
</li>
	<li class="cat-item cat-item-117"><a href="http://javatechig.com/category/reviews" title="View all posts filed under Reviews">Reviews</a>
</li>
	<li class="cat-item cat-item-24"><a href="http://javatechig.com/category/sencha-touch" title="View all posts filed under Sencha Touch">Sencha Touch</a>
</li>
	<li class="cat-item cat-item-5"><a href="http://javatechig.com/category/others" title="View all posts filed under Software Engineering">Software Engineering</a>
</li>
	<li class="cat-item cat-item-96"><a href="http://javatechig.com/category/java/struts" title="View all posts filed under Struts">Struts</a>
</li>
	<li class="cat-item cat-item-89"><a href="http://javatechig.com/category/web-technlogies" title="View all posts filed under Web Technlogies">Web Technlogies</a>
</li>
		</ul>
</aside><aside id="text-19" class="widget widget_text">			<div class="textwidget"><!-- Begin Adversal 300x250 - javatechig.com Code -->
<SCRIPT SRC="http://go.adversal.com/ttj?id=1613589&size=300x250&promo_sizes=250x250,200x200,180x150&promo_alignment=center" TYPE="text/javascript"></SCRIPT>
<!-- End Adversal 300x250 - javatechig.com Code -->

</div>
		</aside><aside id="text-38" class="widget widget_text">			<div class="textwidget"><!-- Begin Adversal 300x250 - javatechig.com Code -->
<SCRIPT SRC="http://go.adversal.com/ttj?id=1613589&size=300x250&promo_sizes=250x250,200x200,180x150&promo_alignment=center" TYPE="text/javascript"></SCRIPT>
<!-- End Adversal 300x250 - javatechig.com Code --></div>
		</aside><aside id="facebookwidget-6" class="widget widget_facebookwidget">		<!-- SFPlugin by TopDevs -->
	<div id="fb-root"></div>
	<script>
		(function(d){
			var js, id = 'facebook-jssdk';
			if (d.getElementById(id)) {return;}
			js = d.createElement('script');
			js.id = id;
			js.async = true;
			js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
			d.getElementsByTagName('head')[0].appendChild(js);
		}(document));
	</script>
	<!-- Like Box Code START -->
	<div class="sfp-container">
		<div class="fb-like-box"
			data-href="http://www.facebook.com/javatechig"
			data-width="292"
			data-height="300"
			data-colorscheme="light"
			data-show-faces="true"
			data-show-border="true"
			data-stream="false" 
			data-header="true">
		</div>
	</div>
	<!-- Like Box Code END --></aside><footer id="colophon" class="site-footer" role="contentinfo">
    <div class="site-footer-inner">
        <ul id="menu-blog-pages" class="nav"><li id="menu-item-1780" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1780"><a href="http://javatechig.com/blog-sitemap">Sitemap</a></li>
<li id="menu-item-1782" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1782"><a href="http://javatechig.com/privacy-policy">Privacy</a></li>
<li id="menu-item-1781" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1781"><a href="http://javatechig.com/guest-blogging">Guest Blogging</a></li>
<li id="menu-item-3203" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3203"><a href="http://javatechig.com/contact-us">Contact Us</a></li>
</ul>
        <div class="site-info">
                        Copyright &copy; 2013 by <a href="#">Javatechig</a>.
            
        </div>
    </div>
</footer>
    </div>
</div>
        </div><!-- .container -->
    </div><!-- #main -->
</div><!-- #page -->
<div class="nav-mask"></div>
<script type="text/javascript">
(function($){
  $("img.lazy").show().lazyload({effect: "fadeIn"});
})(jQuery);
</script>
		<a id="scroll-to-top" href="#" title="Scroll to Top">Top</a>
		<script type='text/javascript'>
  SyntaxHighlighter.autoloader(
      'applescript            http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushAppleScript.js',
      'actionscript3 as3      http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushAS3.js',
      'bash shell             http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushBash.js',
      'coldfusion cf          http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushColdFusion.js',
      'cpp c                  http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushCpp.js',
      'c# c-sharp csharp      http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushCSharp.js',
      'css                    http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushCss.js',
      'delphi pascal          http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushDelphi.js',
      'diff patch pas         http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushDiff.js',
      'erl erlang             http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushErlang.js',
      'groovy                 http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushGroovy.js',
      'hive                   http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushHive.js',
      'java                   http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushJava.js',
      'jfx javafx             http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushJavaFX.js',
      'js jscript javascript  http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushJScript.js',
      'objc obj-c             http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushObjectiveC.js',
      'perl pl                http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushPerl.js',
      'php                    http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushPhp.js',
      'pig                    http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushPig.js',
      'text plain             http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushPlain.js',
      'py python              http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushPython.js',
      'ruby rails ror rb      http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushRuby.js',
      'sass scss              http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushSass.js',
      'scala                  http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushScala.js',
      'sql                    http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushSql.js',
      'vb vbnet               http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushVb.js',
      'xml xhtml xslt html    http://javatechig.com/wp-content/plugins/syntax-highlighter-mt/scripts/shBrushXml.js'
       );
	SyntaxHighlighter.all();
</script>
<script type='text/javascript'>
/* <![CDATA[ */
var tocplus = {"smooth_scroll":"1"};
/* ]]> */
</script>
<script type='text/javascript' src='http://javatechig.com/wp-content/plugins/table-of-contents-plus/front.js?ver=1308'></script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/jquery.autosize.js?ver=20130508'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var dwScript = {"enableInfinitescroll":"1","infiniteScroll":{"loading":{"finishedMsg":"No more post to display","img":"http:\/\/javatechig.com\/wp-content\/themes\/dw-argo_1.0.1_theme\/img\/loading.gif","msgText":""}}};
/* ]]> */
</script>
<script type='text/javascript' src='http://javatechig.com/wp-content/themes/dw-argo_1.0.1_theme/js/functions.js?ver=20130508'></script>
</body>
</html>
<!-- Dynamic page generated in 4.213 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-12-29 14:31:54 -->

<!-- Compression = gzip -->